import request from '@/utils/request';
/**
 * @description 查询列表
 */
export const remoteList = params => {
    return request.get(`/device/liquidJar/queryJarShowList`, params);
};

/**储液罐详情 */
export const getInfo = jarCode => {
    return request.get(`/device/liquidJar/qryJarByCode?jarCode=${jarCode}`);
};

/**
 * 设备监控日志
 */
export const remoteMonitorLogs = params => {
    return request.get(`/device/alarm/queryPage`, params);
};
/**
 * 设备监控日志处理
 */
export const dealMonitorLog = data => {
    return request.post(`/device/alarm/updateAlarmLog`, data);
};
/**
 * 批量设备监控日志处理
 */
export const updateMonitorLog = data => {
    return request.post(`/device/alarm/updateAlarmLogStatus`, data);
};

/**
 * 液位监测相关接口
 */
/**日液位监测 */
export const remoteDayLevel = params=>{
    return request.get(`/device/dayLevel/queryDay`,params)
}
/**周液位监测 */
export const remoteWeekLevel = params=>{
    return request.get(`/device/dayLevel/queryWeek`,params)
}
/**月液位监测 */
export const remoteMonthLevel = params=>{
    return request.get(`/device/dayUse/queryMonth`,params)
}
/**年液位监测 */
export const remoteYearLevel = params=>{
    return request.get(`/device/dayUse/queryYear`,params)
}

/**计算储液罐溶液可用天数 */
export const remoteCountDays = params=>{
    return request.get('/device/dayUse/calLeftDays',params)
}

/**液位数据查询 */
export const remoteDayForChange = params=>{
    return request.get(`/device/dayLevel/queryDayForchange`,params)
}


export default {
    remoteList
};
